# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-stdaux
pkgver=1.4.0
pkgrel=0
pkgdesc="Auxiliary macros and functions for the C standard library"
url="https://github.com/c-util/c-stdaux"
arch="noarch"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="meson"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-stdaux/archive/v$pkgver/c-stdaux-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5b558cc58259f1c18c3e5fc2ca419bf390b1197b0f33f1eff188e65d413bc83f1c52aa7a8eca18cf7544838c30de030c90a19166656e5831a732213b183e6825  c-stdaux-1.4.0.tar.gz
"
